package com.cn.web.role.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.cn.common.IDGenerate;
import com.cn.empty.EmptyCheck;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * description: RoleVO <br>
 * date: 21.12.16 14:17 <br>
 * author: cn_yaojin <br>
 * version: 1.0 <br>
 */
@Setter
@Getter
@ApiModel(value = "角色列表vo")
@Accessors(chain = true)
public class RoleVO extends IDGenerate {

    @ExcelProperty(value = "角色名称")
    @EmptyCheck(message = "角色名称不能为空")
    @ApiModelProperty(value = "角色名称")
    private String roleName;

    @ExcelProperty(value = "角色描述")
    @ApiModelProperty(value = "角色描述")
    private String roleDesc;

    @ExcelIgnore
    @ApiModelProperty(value = "数据权限， 0-全部数据 1-所在部门数据 2-本人的数据")
    private String dataType;

    @ExcelIgnore
    @ApiModelProperty(value = "0-启用 1-禁用")
    private String status = "0";

    @ExcelProperty(value = "新增事件")
    private String addTime;

    @ExcelIgnore
    @ApiModelProperty(value = "添加人")
    private String addName;

}
